﻿@{

    
}

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>@ViewBag.Title</title>
    <link href="@Url.Content("~/Content/themes/base/jquery-ui-1.10.3.custom.min.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/nyromodal.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.10.2.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/modernizr.2.7.1.custom.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery-ui-1.10.3.custom.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.tools.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.nyroModal.custom.min.js")" type="text/javascript"></script>
<!--[if IE 6]>
	<script type="text/javascript" src="~/Scripts/jquery.nyroModal-ie6.min.js"></script>
<![endif]-->
    <script src="@Url.Content("~/Scripts/user.js")" type="text/javascript"></script>

<!--[if IE]>
    <link href="@Url.Content("~/Content/ie.css")" rel="stylesheet" type="text/css" />
<![endif]-->
</head>
<body>
    <div class="page">
        <header>
            <div id="logo">
                <a href="/">Heroquest Character Pad</a>
            </div>
            <div id="beta">
                BETA <span>version 1.2</span>
            </div>
            <div id="logindisplay">
                @Html.Partial("_LogOnPartial")
            </div>
            <nav>
                <ul id="menu">
                    <li>@Html.SubMenuLink("Home", "Index", "Home", "", "The site home page")</li>

                    @if (HttpContext.Current.User.IsInRole("Admin"))
                    {
                        <li>@Html.SubMenuLink("Admin home", "Index", "Admin", "", "Manage the system rules and users")</li>
                    }
                    
                    @if (Request.LogonUserIdentity.IsAuthenticated)
                    {
                        <li>@Html.SubMenuLink("Dashboard", "Dashboard", "Home", "", "Your character dashboard")</li>
                    }
                    
                    <li>@Html.SubMenuLink("About HQ Pad", "About", "Home", "", "About the HQPad initiative")</li>

                    @if (Request.LogonUserIdentity.IsAuthenticated)
                    {
                    <li class="right">@Html.SubMenuLink("Settings", "Settings", "User", "settings modal-window", "Your settings")</li>
                    }
                </ul>
            </nav>
        </header>
        <section id="main">
            @RenderBody()
        </section>
        <footer>
            @Html.ActionLink("release history", "History","Release")
            <a href="mailto:contact@hqpad.org.uk">contact us</a>
        </footer>
    </div>
    <script type="text/javascript">
        function closeModalMaster() {
            $.nmTop().close();

            // refresh the current page.
            location.reload();
        }

        $(document).ready(function() {
            $('#menu li a.modal-window').nyroModal({ 
                sizes: { minW: 400, initH: 400, minH: 400, h: 400 },
            });

            // create the message list plugin instance.
        });
</script>
</body>
</html>
